package de.tub.pong.objects;

import processing.core.PApplet;

public class ScoreBoard {

	// player
	private int pointsLeft = 0;
	private int pointsRight = 0;

	private PApplet parent;

	public ScoreBoard(PApplet parent) {
		this.parent = parent;

		parent.textAlign(PApplet.CENTER);
		parent.textFont(parent.createFont("Krungthep" /* font */,
				72 /* fontSize */, false /* smooth */));

	}

	public void raiseScorePlayerLeft() {
		this.pointsLeft++;
	}

	public void raiseScorePlayerRight() {
		this.pointsRight++;
	}

	public void draw() {
		parent.text(pointsLeft + "   :   " + pointsRight, parent.width / 2, 75);
	}

}
